X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C734E7.BEAF7590@onstor-exch02.onstor.net>; Wed, 10 Jan 2007 10:47:14 -0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C734E7.BEAF7590"
Content-class: urn:content-classes:message
Subject: RE: SNMP MIBs
Date: Wed, 10 Jan 2007 10:47:14 -0800
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04EEF8B7B@onstor-exch02.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: SNMP MIBs
thread-index: Acc0QSA5Lp92BvFhSlSxeZAE25tyXAApInVM
References: <06f101c73441$1caa2620$644d7e0a@glasshousetech.com>
From: "Carlos Mora" <carlos.mora@onstor.com>
To: "Michael Tracy" <mtracy@css.glasshouse.com>,
	"dl-cstech" <dl-cstech@onstor.com>
Cc: "Carlos Mora" <carlos.mora@onstor.com>

This is a multi-part message in MIME format.

------_=_NextPart_001_01C734E7.BEAF7590
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Michael,

This is a question that comes up often. The MIBs work on items that are =
not port related, therefore it is still okay to point the customers to =
them. The customer can solve this themselves by writing scripts to =
gather the info from the nfxsh commands and return it to the =
graphing/monitoring facility. This can be automated by setting up a =
passwordless access to the nfxsh commands necessary to gather the data.

That being said, it is easiest to do this on *nix box. Using =
MRTG/Cacti/etc.... Scripts for the two mentioned applications are simple =
to write.
Here is a script for gathering the port totals for FC, the output is =
what MRTG expects, you will notice there is san ssh root@$filer, that =
has to be setup to allow the script to run without having to enter a =
password. I.e. a public key needs to be setup for root. Not all commands =
require root to get the output, so for security reasons, you may want to =
use a whole new account and grant that account the privs necessarry to =
work for CLUSTER. see: <nfxsh> help useraccount add <username> -k =
<pubkey>=20

<linux>$ cat fctotal.sh
#!/bin/sh

if [ $# -ne 1 ]; then

    echo;echo
    echo "Usage: $0 <filerip>"
    echo;echo
    exit

fi

filer=3D$1



uptime=3D`snmpwalk -Os -v 1 -c public $filer .1.3.6.1.2.1.1.3.0 | awk =
'{print $5 $6 $7 $8 $9}'`

intotal=3D0
incnt=3D0
outtotal=3D0
outcnt=3D0
bobcat_2220=3D"0 1"

for i in 0 1 2 3
do

    # ssh root@10.8.0.8 '/usr/local/agile/bin/nfxsh -e "stats txrx lsi =
0"'|
    #     awk 'NR>1{exit};1'                      # Prints the first =
line of the output
    #     awk 'END{print}'                        # Prints the last  =
line of the output

    cmd=3D`ssh root@$filer "/usr/local/agile/bin/nfxsh -e \"port show =
stats sp.$i\""| grep "SCSI .* bytes"| awk '{print $5
}'`
    incnt=3D`echo "$cmd"|awk 'NR>1{exit};1'`
    intotal=3D`expr $intotal + $incnt`

    outcnt=3D`echo "$cmd"|awk 'END{print}'`
    outtotal=3D`expr $outtotal + $outcnt`

done

echo "$intotal"
echo "$outtotal"
echo "$uptime"
echo "Total throughput"
-------------------------------------------------------------------------=
----------------------------------------------------------------------
See answers inline........

--
Carlos Mora
carlos.mora@onstor.com
ONStor, Inc.
Sr. Technical Support Engineer
(408)802-5602



-----Original Message-----
From: Michael Tracy [mailto:mtracy@css.glasshouse.com]
Sent: Tue 1/9/2007 5:54 PM
To: dl-cstech
Subject: SNMP MIBs
=20
Hi all
There seems to be a lot of confusion to MIBs/SNMP.
So thought I'd get a thread going based on case 4131.
=20
Michael
=20
First the customer's request
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
I have a 3rd party contractor creating performance monitors for our =
bobcats. I've provided him with the MIBs in the utilities link, but h =
requested a few more.
Here is his request verbatim:
Can you contact the OnStor folks and see if we can get their MIB's for
the following items:
onsVsvr
onsProduct
=20

Also it looks like they also have:
onsFibreChannel
onsNdmp
onsONStorMirror
onsQuota
onsFilesys
onsRaid
onsScsi
=20

Also, can you ask them about how to get ifEntry stats for SNMP on them?
=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=20
=20
A while back I was told
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
"the reason the snmp won't work is because the original snmp OIDs were =
written for the Cheetah, when the bobcat was introduced, they used the =
same code. The problem is that the bobcat uses a different chip set for =
its GigE and FC ports than the cheetah, therefore the counters are not =
working. It is on the list of things to fix, but is a much lower =
priority than the other things going on."
=20
Yet, it seems we still use the same MIBs.  Should we NOT direct =
customers there?
=20
=20
So from what I can gather:
a) We currently do not sent SNMP traps.The mibs from our site do not =
actually send any SNMP traps and they only allow SNMP gets.  Any plan to =
do gets in the near future?
b) Do the mib's currently on the Assist site work for the bobcats?  If =
not, which do/don't?

[CM] The mibs work for the most part. Anything related to port specific =
stats won't. CIFS and NFS stats work.

c) Do we have a timeline on new MIB's?=20
Per customer's question: "Do you know when these MIBs will become =
available?"   =20





------_=_NextPart_001_01C734E7.BEAF7590
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7650.28">
<TITLE>RE: SNMP MIBs</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>Michael,<BR>
<BR>
This is a question that comes up often. The MIBs work on items that are =
not port related, therefore it is still okay to point the customers to =
them. The customer can solve this themselves by writing scripts to =
gather the info from the nfxsh commands and return it to the =
graphing/monitoring facility. This can be automated by setting up a =
passwordless access to the nfxsh commands necessary to gather the =
data.<BR>
<BR>
That being said, it is easiest to do this on *nix box. Using =
MRTG/Cacti/etc.... Scripts for the two mentioned applications are simple =
to write.<BR>
Here is a script for gathering the port totals for FC, the output is =
what MRTG expects, you will notice there is san ssh root@$filer, that =
has to be setup to allow the script to run without having to enter a =
password. I.e. a public key needs to be setup for root. Not all commands =
require root to get the output, so for security reasons, you may want to =
use a whole new account and grant that account the privs necessarry to =
work for CLUSTER. see: &lt;nfxsh&gt; help useraccount add =
&lt;username&gt; -k &lt;pubkey&gt;<BR>
<BR>
&lt;linux&gt;$ cat fctotal.sh<BR>
#!/bin/sh<BR>
<BR>
if [ $# -ne 1 ]; then<BR>
<BR>
&nbsp;&nbsp;&nbsp; echo;echo<BR>
&nbsp;&nbsp;&nbsp; echo &quot;Usage: $0 &lt;filerip&gt;&quot;<BR>
&nbsp;&nbsp;&nbsp; echo;echo<BR>
&nbsp;&nbsp;&nbsp; exit<BR>
<BR>
fi<BR>
<BR>
filer=3D$1<BR>
<BR>
<BR>
<BR>
uptime=3D`snmpwalk -Os -v 1 -c public $filer .1.3.6.1.2.1.1.3.0 | awk =
'{print $5 $6 $7 $8 $9}'`<BR>
<BR>
intotal=3D0<BR>
incnt=3D0<BR>
outtotal=3D0<BR>
outcnt=3D0<BR>
bobcat_2220=3D&quot;0 1&quot;<BR>
<BR>
for i in 0 1 2 3<BR>
do<BR>
<BR>
&nbsp;&nbsp;&nbsp; # ssh root@10.8.0.8 '/usr/local/agile/bin/nfxsh -e =
&quot;stats txrx lsi 0&quot;'|<BR>
&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp;&nbsp; awk =
'NR&gt;1{exit};1'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # =
Prints the first line of the output<BR>
&nbsp;&nbsp;&nbsp; #&nbsp;&nbsp;&nbsp;&nbsp; awk =
'END{print}'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp; # Prints the last&nbsp; line of the output<BR>
<BR>
&nbsp;&nbsp;&nbsp; cmd=3D`ssh root@$filer =
&quot;/usr/local/agile/bin/nfxsh -e \&quot;port show stats =
sp.$i\&quot;&quot;| grep &quot;SCSI .* bytes&quot;| awk '{print $5<BR>
}'`<BR>
&nbsp;&nbsp;&nbsp; incnt=3D`echo &quot;$cmd&quot;|awk =
'NR&gt;1{exit};1'`<BR>
&nbsp;&nbsp;&nbsp; intotal=3D`expr $intotal + $incnt`<BR>
<BR>
&nbsp;&nbsp;&nbsp; outcnt=3D`echo &quot;$cmd&quot;|awk 'END{print}'`<BR>
&nbsp;&nbsp;&nbsp; outtotal=3D`expr $outtotal + $outcnt`<BR>
<BR>
done<BR>
<BR>
echo &quot;$intotal&quot;<BR>
echo &quot;$outtotal&quot;<BR>
echo &quot;$uptime&quot;<BR>
echo &quot;Total throughput&quot;<BR>
-------------------------------------------------------------------------=
----------------------------------------------------------------------<BR=
>
See answers inline........<BR>
<BR>
--<BR>
Carlos Mora<BR>
carlos.mora@onstor.com<BR>
ONStor, Inc.<BR>
Sr. Technical Support Engineer<BR>
(408)802-5602<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Michael Tracy [<A =
HREF=3D"mailto:mtracy@css.glasshouse.com">mailto:mtracy@css.glasshouse.co=
m</A>]<BR>
Sent: Tue 1/9/2007 5:54 PM<BR>
To: dl-cstech<BR>
Subject: SNMP MIBs<BR>
<BR>
Hi all<BR>
There seems to be a lot of confusion to MIBs/SNMP.<BR>
So thought I'd get a thread going based on case 4131.<BR>
<BR>
Michael<BR>
<BR>
First the customer's request<BR>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR>
I have a 3rd party contractor creating performance monitors for our =
bobcats. I've provided him with the MIBs in the utilities link, but h =
requested a few more.<BR>
Here is his request verbatim:<BR>
Can you contact the OnStor folks and see if we can get their MIB's =
for<BR>
the following items:<BR>
onsVsvr<BR>
onsProduct<BR>
<BR>
<BR>
Also it looks like they also have:<BR>
onsFibreChannel<BR>
onsNdmp<BR>
onsONStorMirror<BR>
onsQuota<BR>
onsFilesys<BR>
onsRaid<BR>
onsScsi<BR>
<BR>
<BR>
Also, can you ask them about how to get ifEntry stats for SNMP on =
them?<BR>
<BR>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR>
<BR>
<BR>
A while back I was told<BR>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR>
&quot;the reason the snmp won't work is because the original snmp OIDs =
were written for the Cheetah, when the bobcat was introduced, they used =
the same code. The problem is that the bobcat uses a different chip set =
for its GigE and FC ports than the cheetah, therefore the counters are =
not working. It is on the list of things to fix, but is a much lower =
priority than the other things going on.&quot;<BR>
<BR>
Yet, it seems we still use the same MIBs.&nbsp; Should we NOT direct =
customers there?<BR>
<BR>
<BR>
So from what I can gather:<BR>
a) We currently do not sent SNMP traps.The mibs from our site do not =
actually send any SNMP traps and they only allow SNMP gets.&nbsp; Any =
plan to do gets in the near future?<BR>
b) Do the mib's currently on the Assist site work for the bobcats?&nbsp; =
If not, which do/don't?<BR>
<BR>
[CM] The mibs work for the most part. Anything related to port specific =
stats won't. CIFS and NFS stats work.<BR>
<BR>
c) Do we have a timeline on new MIB's?<BR>
Per customer's question: &quot;Do you know when these MIBs will become =
available?&quot;&nbsp;&nbsp;&nbsp;<BR>
<BR>
<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C734E7.BEAF7590--
